/**
 * Password.java
 * Password class to make it easier to work with the user's salt and hashed password
 * 
 * @author Ryan Senkbeil
 */

package com.msoe.core.users;

import com.google.gwt.user.client.rpc.IsSerializable;

public class Password implements IsSerializable
{
	private String hash;
	private String salt;
	
	public Password()
	{
		this.hash = "";
		this.salt = "";
	}
	
	public Password(String salt, String hash)
	{
		this.hash = hash;
		this.salt = salt;
	}
	
	public String getHash()
	{
		return hash;
	}
	
	public void setHash(String hash)
	{
		this.hash = hash;
	}
	
	public String getSalt()
	{
		return salt;
	}
	
	public void setSalt(String salt)
	{
		this.salt = salt;
	}
	
	@Override
	public String toString()
	{
		return (this.salt + this.hash);
	}
}
